package Day5Zuoye;

public class Circle {
public static double π=3.14;
private int banjing;
public void show(){
    double mianji=banjing*banjing*π;
    double zhouchang=2*banjing*π;
    System.out.println("面积是"+mianji);
    System.out.println("周长是"+zhouchang);
}

    public Circle(int banjing) {
        this.banjing = banjing;
    }

    public int getBanjing() {
        return banjing;
    }

    public void setBanjing(int banjing) {
        this.banjing = banjing;
    }
}
